package com.test.service;

import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 路由代理工具
 * @author hero
 */
public interface RoutingDelegate {

    /**
     * 请求转发
     * @param request
     * @param response
     * @param routeUrl 请求网址包含上下文
     * @param prefix 请求路径
     * @return
     */
    ResponseEntity<String> redirect(HttpServletRequest request, HttpServletResponse response, String routeUrl, String prefix);
}
